package com.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * Version: V1.0    <br/>
 * Datetime:   2022/1/20 17:54   <br/>
 * Description: 资源不存在异常
 *
 * @author: chen
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomException extends RuntimeException implements Serializable {

    public CustomException() {
        super("");
    }


    public CustomException(String message) {
        super(message);
    }


    public CustomException(String message, Throwable cause) {
        super(message, cause);
    }


    public CustomException(Throwable cause) {
        super(cause);
    }


    protected CustomException(String message, Throwable cause,
                              boolean enableSuppression,
                              boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}